package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.OrderAgentServiceFallback;
import com.weixing.mall.provider.api.model.vo.OrderAgentVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author wx
 * @Date 2019/11/28 11:46
 * @Version 1.0
 */
@FeignClient(value = "mall-provider-order", configuration = FeignRibbonClientAutoConfiguration.class, fallback = OrderAgentServiceFallback.class)
public interface OrderAgentServiceRpc {
    @GetMapping("api/orderagent/selectByOrderId")
    Result<List<OrderAgentVo>> selectByOrderId(@RequestParam(value = "orderId") Long orderId);
}
